#import "QuestLuminaryCell.h"


@implementation QuestLuminaryCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self yieldUniverseFlexibilityInitUI];
	}
	return self;
}

- (void)setFeastAmberDazzle:(QuestLuminaryModel *)feastAmberDazzle {
	_feastAmberDazzle = feastAmberDazzle;

	//: 配置cell的UI

	self.grumpyYarnLabel.text = feastAmberDazzle.yonder ? @"YES" : @"NO";

	self.infiniteUnveilBraveLabel.text = feastAmberDazzle.dabble ? @"YES" : @"NO";



}
- (UILabel *)infiniteUnveilBraveLabel {
	if (!_infiniteUnveilBraveLabel) {
	
        _infiniteUnveilBraveLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _infiniteUnveilBraveLabel.text = @"label_2";
        _infiniteUnveilBraveLabel.font = [UIFont systemFontOfSize:19 weight:UIFontWeightBold];
        _infiniteUnveilBraveLabel.textColor = [UIColor colorWithRed:157/255.0 green:22/255.0 blue:239/255.0 alpha:0.8];
        _infiniteUnveilBraveLabel.textAlignment = NSTextAlignmentRight;
        _infiniteUnveilBraveLabel.numberOfLines = 3;
	}
	return _infiniteUnveilBraveLabel;
}

//: _quenchAlchemyThriveButton 的点击事件
- (void)action_3 {}

- (UIButton *)quenchAlchemyThriveButton {
	if (!_quenchAlchemyThriveButton) {
	
        _quenchAlchemyThriveButton = [UIButton new];
        UIImage *invincibleAmberVolatile = [UIImage imageNamed:@"images/icon_3.png"];
        if (invincibleAmberVolatile) {
	        [_quenchAlchemyThriveButton setImage:invincibleAmberVolatile forState:UIControlStateNormal];
        }
        [_quenchAlchemyThriveButton setTitle:@"button_3" forState:UIControlStateNormal];
        [_quenchAlchemyThriveButton setTitle:@"button_selected_3" forState:UIControlStateSelected];
        [_quenchAlchemyThriveButton setTitleColor:[UIColor colorWithRed:21/255.0 green:40/255.0 blue:227/255.0 alpha:1.0] forState:UIControlStateNormal];
        [_quenchAlchemyThriveButton setTitleColor:[UIColor colorWithRed:176/255.0 green:52/255.0 blue:19/255.0 alpha:0.6] forState:UIControlStateSelected];
        [_quenchAlchemyThriveButton addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
	}
	return _quenchAlchemyThriveButton;
}

- (UITextField *)apexZenithCirculateTextField {
	if (!_apexZenithCirculateTextField) {
	
        _apexZenithCirculateTextField = [[UITextField alloc] initWithFrame:CGRectZero];
	}
	return _apexZenithCirculateTextField;
}

- (UIImageView *)unveilZebraImageView {
	if (!_unveilZebraImageView) {
	
        _unveilZebraImageView = [UIImageView new];
        _unveilZebraImageView.contentMode = UIViewContentModeScaleAspectFill;
        _unveilZebraImageView.clipsToBounds = YES;
        _unveilZebraImageView.layer.cornerRadius = 2;
        _unveilZebraImageView.layer.masksToBounds = YES;
        UIImage *infiniteBalanceXenophobe = [UIImage imageNamed:@"images/image_5.png"];
        if (infiniteBalanceXenophobe) {
	        _unveilZebraImageView.image = infiniteBalanceXenophobe;
        }
	}
	return _unveilZebraImageView;
}

- (UITextView *)delightfulTextView {
	if (!_delightfulTextView) {
	
        _delightfulTextView = [[UITextView alloc] init];
	}
	return _delightfulTextView;
}

- (void)yieldUniverseFlexibilityInitUI {

    //: 描述_0
    UILabel *journey = [[UILabel alloc] init];
    journey.text = @"label_0";
    journey.font = [UIFont systemFontOfSize:12 weight:UIFontWeightBold];
    journey.textColor = [UIColor colorWithRed:21/255.0 green:128/255.0 blue:95/255.0 alpha:0.9];
    journey.textAlignment = NSTextAlignmentLeft;
    journey.numberOfLines = 0;
    self.grumpyYarnLabel = journey;
    [self.contentView addSubview:journey];
	[self.grumpyYarnLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(34);
		make.height.mas_equalTo(86);
	}];


    //: 描述_1
    self.marbleZebraPirateView = [[UIView alloc] init];
    self.marbleZebraPirateView.frame = CGRectMake(1, 21, 54, 42);
    [self.contentView addSubview:self.marbleZebraPirateView];

	//: 描述_2
	[self.contentView addSubview:self.infiniteUnveilBraveLabel];
	[self.infiniteUnveilBraveLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(113);
		make.height.mas_equalTo(125);
	}];

	//: 描述_3
	[self.contentView addSubview:self.quenchAlchemyThriveButton];
	[self.quenchAlchemyThriveButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(100);
		make.height.mas_equalTo(138);
		make.bottom.equalTo(@(13));
	}];

	//: 描述_4
	[self.contentView addSubview:self.apexZenithCirculateTextField];
	[self.apexZenithCirculateTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(78);
		make.height.mas_equalTo(74);
		make.top.equalTo(@(13));
		make.bottom.equalTo(@(12));
	}];

	//: 描述_5
	[self.contentView addSubview:self.unveilZebraImageView];
	[self.unveilZebraImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(33);
		make.height.mas_equalTo(118);
		make.bottom.equalTo(@(13));
	}];


    //: 描述_6
    UITextView *luminescence = [UITextView new];
    luminescence.frame = CGRectMake(48, 6, 35, 194);
    self.tranquilTextView = luminescence;
    [self.contentView addSubview:luminescence];


    //: 描述_7
    UITextField *brightenZealot = [UITextField new];
    brightenZealot.size = CGSizeMake(143, 132);
    brightenZealot.left = 19;
    brightenZealot.top = 50;
    self.flourishHeatwaveTextField = brightenZealot;
    [self.contentView addSubview:brightenZealot];


    //: 描述_8
    self.melodyNostalgicWindfallTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    [self.contentView addSubview:self.melodyNostalgicWindfallTextView];
	[self.melodyNostalgicWindfallTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(98);
		make.height.mas_equalTo(107);
		make.top.equalTo(@(17));
	}];

	//: 描述_9
	[self.contentView addSubview:self.delightfulTextView];
	[self.delightfulTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(133);
		make.height.mas_equalTo(184);
		make.top.equalTo(@(14));
	}];
}


@end